package com.example.xm.service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.xm.entity.Huiyuan;
import com.example.xm.entity.Jindu;
import com.example.xm.entity.Tiezi;
import com.example.xm.mapper.FenleiMapper;
import com.example.xm.mapper.JinduMapper;
import com.example.xm.mapper.TieziMapper;
import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TieziService extends ServiceImpl<TieziMapper, Tiezi> {
@Autowired
TieziMapper tieziMapper;
    public PageInfo<Tiezi> list(Integer page, Integer size, Integer uid, Integer cid,Integer status) {
        PageHelper.startPage(page,size);
        List<Tiezi> adminList=  tieziMapper.selectList(uid,cid,status);
        PageInfo<Tiezi> adminPageInfo = new PageInfo<Tiezi>(adminList);
        return adminPageInfo;
    }

    public void delete(int[] intArray) {
        tieziMapper.delete(intArray);
    }
}
